const sql = require('./../../sql/sql');
const Utils = require('./../utils/utils');

class ClusterDao {
  queryAll (params) {
    return Utils.executeSql(sql.cluster.queryAll(params || {}));
  }
  query (params) {
    return Utils.executeSql(sql.cluster.query(params));
  }

  count () {
    return Utils.executeSql(sql.cluster.count());
  }

  delete (params) {
    return Utils.executeSql(sql.cluster.delete(params));
  }

  expunge (params) {
    return Utils.executeSql(sql.cluster.expunge(params));
  }

}

module.exports = ClusterDao;